Package com.netscape.certsrv.request
Class AgentApprovals
java.lang.Object
com.netscape.certsrv.request.AgentApprovals
- All Implemented Interfaces:
Serializable
A collection of AgentApproval objects.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddApproval
(String userName) Adds an approval to approval's list.elements()
Returns an enumeration of the agent approvalsfindApproval
(String userName) Finds an existing AgentApproval for the named user.static AgentApprovals
fromStringVector
(Vector<String> stringVector) Recreates an AgentApprovals instance from a Vector of strings that was created by toStringVector().get
(int i) void
removeApproval
(String userName) Removes an approval from approval's list.int
size()
Returns the AgentApprovals as a Vector of strings.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mVector
-
-
Constructor Details
-
AgentApprovals
public AgentApprovals()
-
-
Method Details
-
addApproval
Adds an approval to approval's list.If an approval is already present for this user, it is updated with a new date. Otherwise a new value is inserted.
- Parameters:
userName
- user name of the approving agent
-
removeApproval
Removes an approval from approval's list.If there is no approval for this userName, this call does nothing.
- Parameters:
userName
- user name of the approving agent
-
findApproval
Finds an existing AgentApproval for the named user.- Parameters:
userName
- user name of the approving agent- Returns:
- an AgentApproval object
-
elements
Returns an enumeration of the agent approvals- Returns:
- an enumeration of the agent approvals
-
toStringVector
Returns the AgentApprovals as a Vector of strings. Each entry in the vector is of the format: epoch;username where epoch is the date.getTime()This is used for serialization in Request.setExtData().
- Returns:
- The string vector.
-
fromStringVector
Recreates an AgentApprovals instance from a Vector of strings that was created by toStringVector().- Parameters:
stringVector
- The vector of strings to translate- Returns:
- the AgentApprovals instance or null if it can't be translated.
-
size
public int size() -
get
-